home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / test / locale / old / dmakefile < prev    next >
Encoding:
Makefile  |  1993-03-11  |  1.5 KB  |  65 lines

  1. PROJECT= helloworld
  2. DIR=
  3. SRCS= helloworld.c
  4. HDRS=
  5. EXTRAS= helloworld.cd
  6. PDEFAULT=
  7. EXEDIR=
  8. OD=
  9. PRECOMP=
  10. TYPE= Normal
  11. RUN=
  12. CLIARGS=
  13. CFLAGS= -IV:include -d1
  14.  
  15.  
  16. #### AUTOMATICALLY GENERATED - DO NOT EDIT BELOW THIS LINE
  17. PROTOS= $(OD)$(PROJECT)-protos.h
  18. EXE= $(EXEDIR)$(PROJECT)
  19. COMPFLAGS = $(CFLAGS) $(OD:"*":-I*) $(PRECOMP:"*.h":"-HT:%1.m=%1.h")
  20. PCOMPFILE = $(PRECOMP:"*.h":"T:*.m")
  21.  
  22. OBJS= $(SRCS:"*.c":"$(OD)*.o") $(SRCS:"*.a":"$(OD)*.o")
  23.  
  24. all: $(PCOMPFILE) $(PROTOS) $(EXE) helloworld_strings.o hello
  25.  
  26. nopro: $(EXE)
  27.  
  28. helloworld_strings.o : helloworld.cd
  29. CatComp helloworld.cd cfile helloworld_strings.h objfile helloworld_strings.o
  30.  
  31. # this is the deutsch helloworld catalog
  32. d_helloworld.catalog:    helloworld_d.ct helloworld.cd
  33. CatComp helloworld.cd helloworld_d.ct catalog d_helloworld.catalog
  34. copy d_helloworld.catalog catalogs/deutsch/helloworld.catalog
  35.  
  36. # this is the english helloworld catalog
  37. e_helloworld.catalog:    helloworld_e.ct helloworld.cd
  38. CatComp helloworld.cd helloworld_e.ct catalog e_helloworld.catalog NOOPTIM
  39. copy e_helloworld.catalog catalogs/english/helloworld.catalog
  40.  
  41. $(EXE): helloworld_strings.o $(OBJS)
  42.     fwrite $(OD)$(PROJECT).lnktmp $(OBJS)
  43.     dcc $(COMPFLAGS) @$(OD)$(PROJECT).lnktmp -o %(left)
  44.  
  45. hello:    hello.o
  46.     dcc $(COMPFLAGS) hello.o -o hello
  47.  
  48. hello.o:    hello.c
  49.     dcc $(COMPFLAGS) hello.c -o hello.o -c $(COMPFLAGS)
  50.  
  51. $(OBJS) : $(SRCS)
  52.     dcc %(right) -o %(left) -c $(COMPFLAGS)
  53.  
  54. $(PROTOS) : $(SRCS)
  55.     -delete %(left)
  56.     makeproto -o %(left) %(right)
  57.  
  58. clean:
  59.     -delete $(OBJS) $(PROTOS) $(PRECOMP)
  60.  
  61. relink: rmexe $(EXE)
  62.  
  63. rmexe:
  64.     -delete $(EXE)
  65.